gtk4.git
10 years agotext view: add padding and margin
Sebastien Lafargue [Tue, 23 Dec 2014 20:30:24 +0000 (21:30 +0100)]
text view: add padding and margin

Add API to set top and bottom margins, and add the CSS padding
from the theme to the programmatically set margins.

https://bugzilla.gnome.org/show_bug.cgi?id=406159

10 years agoUpdated Galician translations
Fran Dieguez [Sun, 16 Aug 2015 23:31:09 +0000 (01:31 +0200)]
Updated Galician translations

10 years agoAdd a test for gtk_flow_box_bind_model
Matthias Clasen [Sun, 16 Aug 2015 22:20:12 +0000 (18:20 -0400)]
Add a test for gtk_flow_box_bind_model

10 years agoAdd gtk_flow_box_bind_model
Matthias Clasen [Sun, 16 Aug 2015 22:05:33 +0000 (18:05 -0400)]
Add gtk_flow_box_bind_model

10 years agoAdd a test for g_list_box_bind_model
Matthias Clasen [Sun, 16 Aug 2015 22:04:49 +0000 (18:04 -0400)]
Add a test for g_list_box_bind_model

10 years agolist box: Shorten some static function names
Matthias Clasen [Sun, 16 Aug 2015 22:11:50 +0000 (18:11 -0400)]
list box: Shorten some static function names

10 years agoBump Pango requirement to 1.37.3
Christoph Reiter [Sun, 16 Aug 2015 06:04:37 +0000 (08:04 +0200)]
Bump Pango requirement to 1.37.3

GTK+ now uses pango_attr_foreground_alpha_new, pango_attr_background_alpha_new,
PANGO_ATTR_FOREGROUND_ALPHA, PANGO_ATTR_BACKGROUND_ALPHA,
pango_renderer_set_alpha, pango_renderer_get_alpha, which were all added
after 1.37.2.

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sun, 16 Aug 2015 06:10:06 +0000 (06:10 +0000)]
Updated Portuguese translation

10 years agopopover: Don't restore stale default widget
Matthias Clasen [Sun, 16 Aug 2015 03:38:20 +0000 (23:38 -0400)]
popover: Don't restore stale default widget

Only restore the saved default widget if the default hasn't been
changed while the popover was visible.

10 years agoAdd a note to gdk_screen_get_width/height_mm
Matthias Clasen [Sun, 16 Aug 2015 02:20:16 +0000 (22:20 -0400)]
Add a note to gdk_screen_get_width/height_mm

The values returned by these functions are not very well defined,
recommend to use the monitor dimensions instead.

10 years agowayland: calculate screen physical size
Carlos Garnacho [Fri, 14 Aug 2015 10:05:37 +0000 (12:05 +0200)]
wayland: calculate screen physical size

A simple calculation is done so far (assuming monitor areas never overlap)
so gdk_screen_get_width/height_mm return meaningful values.

https://bugzilla.gnome.org/show_bug.cgi?id=753621

10 years agopopover: Optimize the transition
Matthias Clasen [Sun, 16 Aug 2015 02:02:40 +0000 (22:02 -0400)]
popover: Optimize the transition

There's no need to queue a resize here.

https://bugzilla.gnome.org/show_bug.cgi?id=753568

10 years agowindow: Set name on idle
Matthias Clasen [Sat, 15 Aug 2015 20:05:11 +0000 (16:05 -0400)]
window: Set name on idle

Use gdk_threads_add_idle, and set a name on the source to aid
debugging, as we do everywhere else.

10 years agosearc engine model: Set name on idle
Matthias Clasen [Sat, 15 Aug 2015 20:04:09 +0000 (16:04 -0400)]
searc engine model: Set name on idle

Use gdk_threads_add_idle, and set a name on the source to aid
debugging, as we do everywhere else.

10 years agoUpdate release notes a bit
Matthias Clasen [Sat, 15 Aug 2015 17:40:30 +0000 (13:40 -0400)]
Update release notes a bit

10 years agoFix a thinko in GtkLabel
Matthias Clasen [Sat, 15 Aug 2015 15:16:46 +0000 (11:16 -0400)]
Fix a thinko in GtkLabel

10 years agoSupport alpha in text cell renderer colors
Matthias Clasen [Sat, 15 Aug 2015 15:07:54 +0000 (11:07 -0400)]
Support alpha in text cell renderer colors

This is easily possible, now that Pango supports alpha.

10 years agoUpdated Slovak translation
Dušan Kazik [Sat, 15 Aug 2015 09:57:23 +0000 (09:57 +0000)]
Updated Slovak translation

10 years agoGtkLabel: Add alpha support for buildable attributes
Matthias Clasen [Wed, 12 Aug 2015 01:35:24 +0000 (21:35 -0400)]
GtkLabel: Add alpha support for buildable attributes

Make it possible to set foreground or background alpha in the
builder ui support for Pango attributes.

10 years agoGtkTextDisplay: Use pango renderer alpha support
Matthias Clasen [Wed, 12 Aug 2015 01:25:51 +0000 (21:25 -0400)]
GtkTextDisplay: Use pango renderer alpha support

We don't need to store our own copy of the colors anymore,
now that PangoRenderer can do alpha.

10 years agoUpdates
Matthias Clasen [Sat, 15 Aug 2015 01:56:51 +0000 (21:56 -0400)]
Updates

10 years agoRevert "wayland: require WAYLAND_DISPLAY be set to open wayland display"
Ray Strode [Fri, 14 Aug 2015 15:24:44 +0000 (11:24 -0400)]
Revert "wayland: require WAYLAND_DISPLAY be set to open wayland display"

This reverts commit 35489f5d31b20a390b45803d760f965391d0b57f.

It snuck in when i was trying to push

commit f4d2022d46e16e1fdec8ca9b107a9870155832bf

10 years agowayland: change wl_log level to G_LOG_LEVEL_DEBUG
Ray Strode [Fri, 14 Aug 2015 15:03:43 +0000 (11:03 -0400)]
wayland: change wl_log level to G_LOG_LEVEL_DEBUG

wl_log() currently logs using G_LOG_LEVEL_ERROR
(which is fatal). The wayland client library doesn't
expect this behavior. It uses wl_log to log recoverable
errors.

This commit changes the log level to G_LOG_LEVEL_DEBUG
instead.

https://bugzilla.gnome.org/show_bug.cgi?id=753635

10 years agowayland: require WAYLAND_DISPLAY be set to open wayland display
Ray Strode [Fri, 14 Aug 2015 14:23:31 +0000 (10:23 -0400)]
wayland: require WAYLAND_DISPLAY be set to open wayland display

The wayland client libraries now require WAYLAND_DISPLAY be set
to use them.

See:

http://cgit.freedesktop.org/wayland/wayland/commit/?id=fb7e13021730d0a5516ecbd3712ea4235e05d24d

This commit makes _gdk_wayland_display_open bail early if
WAYLAND_DISPLAY is unset, just as it does for XDG_RUNTIME_DIR.

10 years agoGDK W32: Add missing commas
Руслан Ижбулатов [Fri, 14 Aug 2015 12:12:01 +0000 (12:12 +0000)]
GDK W32: Add missing commas

10 years agoRevert "Revert "Revert "gtkwindow: Reset maximize / fullscreen_initially on state...
Matthias Clasen [Wed, 12 Aug 2015 23:35:52 +0000 (19:35 -0400)]
Revert "Revert "Revert "gtkwindow: Reset maximize / fullscreen_initially on state changes"""

This reverts commit 8001b2c1b3b9b5535d20ec942c497ae0f0a4adc7.

10 years agoRevert "Revert "Revert "window: fix initial shadow width for maximized/fullscreen...
Matthias Clasen [Wed, 12 Aug 2015 23:35:10 +0000 (19:35 -0400)]
Revert "Revert "Revert "window: fix initial shadow width for maximized/fullscreen windows"""

This reverts commit 968ac90e89f444e180d883a28bfd260b118f451d.

10 years agoRevert "Revert "gtkwindow: Reset maximize / fullscreen_initially on state changes""
Matthias Clasen [Thu, 23 Jul 2015 03:16:44 +0000 (23:16 -0400)]
Revert "Revert "gtkwindow: Reset maximize / fullscreen_initially on state changes""

This reverts commit de2ea1ebaabd7550ca6f2a02bfbaa04ac92181fd.

No reason in the commit message was given for the revert, and we need
this for proper behavior on map.

10 years agoRevert "Revert "window: fix initial shadow width for maximized/fullscreen windows""
Jasper St. Pierre [Wed, 12 Aug 2015 21:39:46 +0000 (14:39 -0700)]
Revert "Revert "window: fix initial shadow width for maximized/fullscreen windows""

This reverts commit 8b695cc7279270eabf7d2541cfd592608d0add38.

No reason in the commit message was given for the revert, and we need
this for proper behavior on map.

10 years agowayland: Implement touchpad gesture events
Carlos Garnacho [Thu, 9 Jul 2015 17:36:30 +0000 (19:36 +0200)]
wayland: Implement touchpad gesture events

On wayland, the gestures protocol defines a wl_pointer_gestures global
object, that will match in number with wl_seats, swipe and pinch
interfaces can be obtained from it, which events are translated into
GdkEventTouchpadSwipe/Pinch events.

10 years agowayland: Add touchpad gestures protocol
Carlos Garnacho [Mon, 20 Jul 2015 15:22:33 +0000 (17:22 +0200)]
wayland: Add touchpad gestures protocol

10 years agogtkgesture: Add note to gtk_gesture_get_bounding_box()
Carlos Garnacho [Fri, 24 Jul 2015 10:59:59 +0000 (12:59 +0200)]
gtkgesture: Add note to gtk_gesture_get_bounding_box()

This is the only function that's will be semantically confusing
with touchpad gesture events, explain what's to be expected there.

10 years agogtkgesture: Add touchpad gesture event bit to the controller evmask
Carlos Garnacho [Thu, 9 Jul 2015 17:35:12 +0000 (19:35 +0200)]
gtkgesture: Add touchpad gesture event bit to the controller evmask

10 years agogtkgesturedrag: Handle touchpad swipe events
Carlos Garnacho [Fri, 24 Jul 2015 11:05:31 +0000 (13:05 +0200)]
gtkgesturedrag: Handle touchpad swipe events

These will only trigger the gesture if it's been created with
the same GtkGesture::n-points than n_fingers in the event.

10 years agogtkgestureswipe: Handle touchpad swipe events
Carlos Garnacho [Fri, 24 Jul 2015 11:03:09 +0000 (13:03 +0200)]
gtkgestureswipe: Handle touchpad swipe events

These will only trigger the gesture if it's been created with
the same GtkGesture::n-points than n_fingers in the event.

10 years agogtkgesturerotate: Handle touchpad pinch events
Carlos Garnacho [Thu, 9 Jul 2015 17:34:09 +0000 (19:34 +0200)]
gtkgesturerotate: Handle touchpad pinch events

We let these through in GtkEventController::filter, and handle
these especially on GtkGesture::update.

10 years agogtkgesturezoom: Handle touchpad pinch events
Carlos Garnacho [Thu, 9 Jul 2015 17:31:27 +0000 (19:31 +0200)]
gtkgesturezoom: Handle touchpad pinch events

We let these through in GtkEventController::filter, and handle
these especially on GtkGesture::update.

10 years agogtkgesture: Add docs blurb about touchpad gestures
Carlos Garnacho [Fri, 24 Jul 2015 16:52:38 +0000 (18:52 +0200)]
gtkgesture: Add docs blurb about touchpad gestures

Not too long though, the precautions to take are minimal.

10 years agogtkgesture: Accumulate touchpad events' dx/dy in point data
Carlos Garnacho [Fri, 24 Jul 2015 09:48:44 +0000 (11:48 +0200)]
gtkgesture: Accumulate touchpad events' dx/dy in point data

This will make the gesture "center" the pointer position, plus
the accumulated dx/dy throughout the gesture progress.

10 years agogtkgesture: Handle touchpad events
Carlos Garnacho [Thu, 9 Jul 2015 17:18:09 +0000 (19:18 +0200)]
gtkgesture: Handle touchpad events

These will be mutually exclusive with touch events, so it won't
be possible to trigger gestures through mixed input and whatnot.

The accounting of touchpad events is slightly different, there
will be a single internal PointData struct, stored in the hashtable
with the NULL event sequence/key (same than pointer events in
this regard), just that the events stored will be GdkEventTouchpad*,
so will hold information about all fingers at once.

But this difference is just internal, the GtkGesture API doesn't
make explicit assumptions about the number of points (the closest
to a per-point query API is gtk_gesture_get_sequences()). All
signals emitted just contain the last changed GdkEventSequence,
and API takes GdkEventSequences, so everything is consistent with
sequence=NULL for touchpad events.

10 years agogtkgesture: Refactor n-points querying into a single function
Carlos Garnacho [Thu, 9 Jul 2015 17:11:04 +0000 (19:11 +0200)]
gtkgesture: Refactor n-points querying into a single function

Along the code, we're basically asking for 1) the total count of
touchpoints, and 2) the number of active touchpoints (not denied
nor ended).

Wrap both usecases into a _gtk_gesture_get_n_physical_touchpoints(),
and replace all occurrences.

10 years agogtkgesture: Filter out touchpad events by default.
Carlos Garnacho [Thu, 9 Jul 2015 17:04:59 +0000 (19:04 +0200)]
gtkgesture: Filter out touchpad events by default.

The gestures that don't want touchpad gesture events are majority,
even those that want such events will only listen to subsets (eg.
pinch, swipe,...).

So it makes sense to ignore touchpad events by default, and let
subclasses opt those in.

10 years agogtkgesture: Refactor gtk_gesture_handle_event()
Carlos Garnacho [Fri, 24 Jul 2015 15:39:35 +0000 (17:39 +0200)]
gtkgesture: Refactor gtk_gesture_handle_event()

We'll be dealing with event types and touchpad gesture phases,
replace the switch by a battery of if/elses. Otherwise, it's
just an style change.

10 years agoeventcontroller: Add private ::filter method
Carlos Garnacho [Thu, 9 Jul 2015 16:55:32 +0000 (18:55 +0200)]
eventcontroller: Add private ::filter method

This will be used right before handle_event() in order to filter
out events, useful to make the previous "no touchpad events" behavior
the default, and have gesture subclasses include manually the touchpad
events they handle.

10 years agogtkwidget: Ensure touchpad events trigger the bubbling phase
Carlos Garnacho [Thu, 9 Jul 2015 16:48:41 +0000 (18:48 +0200)]
gtkwidget: Ensure touchpad events trigger the bubbling phase

For all other events, we run the bubble phase deep in the specific
::motion/button-press/release/touch handlers.

For touchpad events, it doesn't make sense to use GtkWidgetClass
slots if the intended way to deal with these are gestures, so we
run the bubble phase directly from gtk_widget_event_internal().

10 years agogtkmain: Handle rewriting of event fields during grabs for touchpad events
Carlos Garnacho [Thu, 9 Jul 2015 16:47:02 +0000 (18:47 +0200)]
gtkmain: Handle rewriting of event fields during grabs for touchpad events

The window/coordinates will need translation in the case of touchpad gesture
events, same than with other pointer events.

10 years agogdk: Proxy touchpad events through the client-side window hierarchy
Carlos Garnacho [Thu, 9 Jul 2015 16:44:09 +0000 (18:44 +0200)]
gdk: Proxy touchpad events through the client-side window hierarchy

This includes poking the deepmost window, checking for the
GDK_TOUCHPAD_GESTURE_MASK bit set, and translating coordinates in events
accordingly.

10 years agogdk: Add GDK_TOUCHPAD_GESTURE_MASK to GdkEventMask
Carlos Garnacho [Thu, 9 Jul 2015 16:42:35 +0000 (18:42 +0200)]
gdk: Add GDK_TOUCHPAD_GESTURE_MASK to GdkEventMask

Users will need to manually select on this in order to receive gesture
events.

10 years agogdk: Add touchpad gesture events and event types.
Carlos Garnacho [Thu, 9 Jul 2015 16:39:58 +0000 (18:39 +0200)]
gdk: Add touchpad gesture events and event types.

Each gesture type has its separate GdkEvent struct, and begin/update/
end/cancel event types.

There is support for multi-finger swipe (3-4 fingers), and 2-finger
rotate/pinch gestures.

10 years agocellrendererpixbuf: do not clear the icon helper twice
Paolo Borelli [Wed, 12 Aug 2015 06:12:36 +0000 (08:12 +0200)]
cellrendererpixbuf: do not clear the icon helper twice

Do not call _gtk_icon_helper_clear explicitely when the properties
are set, since the corresponding _gtk_icon_helper_set_* method
already calls clear internally.
While at it rename the reset function to make it clear that it
is calling notify for the previous image type and avoid the
notification if the image type is not changing.

10 years agocolor chooser: Reset show-editor on unmap
Matthias Clasen [Wed, 12 Aug 2015 11:22:05 +0000 (07:22 -0400)]
color chooser: Reset show-editor on unmap

We have a testcolorchooser test, with a --edit option. It was
supposed to make the color chooser come up in edit mode, but
it didn't work ever since we dropped the ::response handler.
Fix it by resetting show-editor on unmap, instead of on map.
This way, users can set show-editor before showing the dialog,
and it will take effect.

10 years agolistbox: Describe behavior change in GtkListBoxCreateWidgetFunc
David King [Tue, 11 Aug 2015 15:06:17 +0000 (16:06 +0100)]
listbox: Describe behavior change in GtkListBoxCreateWidgetFunc

Help applicaiton authors who may already be binding GtkListBox to a
GListModel by describing the change for 3.18.

https://bugzilla.gnome.org/show_bug.cgi?id=753392

10 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 12 Aug 2015 07:04:05 +0000 (09:04 +0200)]
Updated Spanish translation

10 years agoUpdated Spanish translation
Daniel Mustieles [Wed, 12 Aug 2015 07:03:50 +0000 (09:03 +0200)]
Updated Spanish translation

10 years agolabel: Flesh out pango attribute support
Matthias Clasen [Wed, 12 Aug 2015 00:57:52 +0000 (20:57 -0400)]
label: Flesh out pango attribute support

A few attribute types were missing from the support:
rise, letterspacing, fallback, font features. Add support
for these.

10 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Tue, 11 Aug 2015 17:58:17 +0000 (19:58 +0200)]
Updated Norwegian bokmål translation.

10 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 11 Aug 2015 10:34:59 +0000 (12:34 +0200)]
Updated Spanish translation

10 years agowidget-factory: Add a lock button
Matthias Clasen [Mon, 10 Aug 2015 22:09:39 +0000 (00:09 +0200)]
widget-factory: Add a lock button

10 years agofont chooser: Make repeated Escape cancel the dialog
Matthias Clasen [Mon, 10 Aug 2015 18:32:22 +0000 (20:32 +0200)]
font chooser: Make repeated Escape cancel the dialog

The first Escape clears the search entry, the second Escape
closes the dialog.

10 years agofont chooser: Make the entry activate the default
Matthias Clasen [Mon, 10 Aug 2015 18:21:33 +0000 (20:21 +0200)]
font chooser: Make the entry activate the default

10 years agofont chooser: Use browse as selection mode
Matthias Clasen [Mon, 10 Aug 2015 18:17:58 +0000 (20:17 +0200)]
font chooser: Use browse as selection mode

10 years agofont chooser: Make Escape stop search
Matthias Clasen [Mon, 10 Aug 2015 18:15:26 +0000 (20:15 +0200)]
font chooser: Make Escape stop search

10 years agoplacesview: show Disconnect instead of Eject
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 18:35:56 +0000 (15:35 -0300)]
placesview: show Disconnect instead of Eject

Since we're dealing with networks, terms like "Eject" or
the eject button are misleading, since we're not actually
ejecting but disconnecting.

Fix that by showing the appropriate icon and tooltip.

10 years agoplacesview: sort by path
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 18:33:34 +0000 (15:33 -0300)]
placesview: sort by path

As pointed out by Cosimo, we should sort the
items according to their path.

10 years agoplacesview: plug a leak
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 18:24:43 +0000 (15:24 -0300)]
placesview: plug a leak

10 years agoplacesview: no url for networks
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 17:46:23 +0000 (14:46 -0300)]
placesview: no url for networks

We are not showing the URL of network locations
anymore, since they are distracting and not
necessary.

The code, however, forgot to cleanup the URL,
so we are still showing the URL for network
locations.

Fix that by properly cleanup the URL for network
locations.

10 years agoAdwaita: Don't leak underlines
Matthias Clasen [Mon, 10 Aug 2015 14:38:04 +0000 (16:38 +0200)]
Adwaita: Don't leak underlines

The .button:link .label selector matches any label "inside" a
link button. And a label inside the context menu counts as inside
for this purpose. This causes the text-decoration property to
leak into the context menu, even though the property is not
inherited. Avoid this by tightening the selector to
.button:link > .label.

https://bugzilla.gnome.org/show_bug.cgi?id=753451

10 years agoplacesview: jumps to the default location
Georges Basile Stavracas Neto [Mon, 10 Aug 2015 13:42:43 +0000 (10:42 -0300)]
placesview: jumps to the default location

When we connect to a server, the default and expected
behavior is going to the default location, which usually
is the home directory or a writable directory.

GtkPlacesSidebar behaves properly, while GtkPlacesView
doesn't.

Fix that by jumping to the default locations instead of
the root location.

10 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 10 Aug 2015 07:17:16 +0000 (09:17 +0200)]
Updated Spanish translation

10 years agoRemove some unused data
Matthias Clasen [Sun, 9 Aug 2015 21:39:14 +0000 (23:39 +0200)]
Remove some unused data

10 years agoRemove an unused function
Matthias Clasen [Sun, 9 Aug 2015 21:39:00 +0000 (23:39 +0200)]
Remove an unused function

10 years agoRemove a self-assignment
Matthias Clasen [Sun, 9 Aug 2015 21:38:40 +0000 (23:38 +0200)]
Remove a self-assignment

clang doesn't like those.

10 years agoFix a doc comment typo
Matthias Clasen [Sun, 9 Aug 2015 21:31:36 +0000 (23:31 +0200)]
Fix a doc comment typo

10 years agoUpdated Turkish translation
Necdet Yücel [Sun, 9 Aug 2015 15:53:28 +0000 (15:53 +0000)]
Updated Turkish translation

10 years agoUpdated Portuguese translation
Pedro Albuquerque [Sun, 9 Aug 2015 07:31:44 +0000 (07:31 +0000)]
Updated Portuguese translation

10 years agoFormatting fixes
Matthias Clasen [Sat, 8 Aug 2015 21:05:53 +0000 (23:05 +0200)]
Formatting fixes

10 years agoHighContrast: Fix undershoot in sidebars
Matthias Clasen [Sat, 8 Aug 2015 20:27:29 +0000 (22:27 +0200)]
HighContrast: Fix undershoot in sidebars

This was just not implemented, and the sidebars solid white
background color was inherited by undershoot rectangle.

https://bugzilla.gnome.org/show_bug.cgi?id=753391

10 years agolistbox: Avoid using show_all on rows
Kalev Lember [Sat, 8 Aug 2015 14:33:42 +0000 (16:33 +0200)]
listbox: Avoid using show_all on rows

Don't use gtk_widget_show_all() on row widgets because that would
unconditionally show all of its children. This might be unwanted in case
the row implementation wants to keep some of its children hidden.

This commit changes it to use show() instead of show_all() and relies on
the row widget to control the visibility of its children itself as
appropriate.

https://bugzilla.gnome.org/show_bug.cgi?id=753392

10 years agoUpdated Lithuanian translation
Aurimas Černius [Sat, 8 Aug 2015 14:09:56 +0000 (17:09 +0300)]
Updated Lithuanian translation

10 years agoUpdate Catalan translation
Jordi Mas [Sat, 8 Aug 2015 13:20:14 +0000 (15:20 +0200)]
Update Catalan translation

10 years agoquartz: Implement CSD drag resize for all edges/corners
Christoph Reiter [Thu, 6 Aug 2015 19:36:57 +0000 (21:36 +0200)]
quartz: Implement CSD drag resize for all edges/corners

Manual resizing for CSD windows only worked with the bottom
right corner. This extends it to work for all corners and edges.

https://bugzilla.gnome.org/show_bug.cgi?id=753329

10 years agoHighContrast: Improve GtkCalendar drawing
Matthias Clasen [Sat, 8 Aug 2015 08:02:49 +0000 (10:02 +0200)]
HighContrast: Improve GtkCalendar drawing

Make days gray that are not in the current month.

https://bugzilla.gnome.org/show_bug.cgi?id=753357

10 years agofile chooser button: Fix some refcounting confusion
Matthias Clasen [Thu, 6 Aug 2015 12:51:25 +0000 (14:51 +0200)]
file chooser button: Fix some refcounting confusion

GtkFileSystem has a complicated way to handle cancellables.
You keep the cancellable pointer that is returned by
_gtk_file_system_get_info and similar methods so that you can
cancel the operation, but you do not own a reference to it.
The only place where it is ok to unref a cancellable is in
your callback, which gets handed a cancellable that you need
to unref at the end. You are expected to compare it to the
pointer you stashed away to find out if the operation has
already been superseded by a newer call, in which case you
disregard the results.

GtkFileChooserButton was following these rules for most of
the cancellables it keeps around, but it was sometimes unreffing
the cancellables that are stored in the model, which could lead
to refcount confusion and crashes. This commit makes it follow
the rules for that case too, which fixes the crash in the bug
below, and does not show up any leaks in valgrind under light
testing.

https://bugzilla.gnome.org/show_bug.cgi?id=737804

10 years agogtk/gtkcsstypesprivate.h: Fix Build
Chun-wei Fan [Thu, 30 Jul 2015 06:52:10 +0000 (14:52 +0800)]
gtk/gtkcsstypesprivate.h: Fix Build

The recent change to the enum declaration for GtkCssChange actually
relied on compiler-dependent behavior, which also breaks the build on
some non-GCC compilers, such as Visual Studio.  As noted in the
G_STATIC_ASSERT line just beneath this declaration, we need to change
this enum declaration to #define's, in order to fix the build in such
situations.

https://bugzilla.gnome.org/show_bug.cgi?id=752814

10 years ago3.17.6
Matthias Clasen [Wed, 5 Aug 2015 17:48:40 +0000 (13:48 -0400)]
3.17.6

10 years agoFix a doc comment
Matthias Clasen [Wed, 5 Aug 2015 18:20:00 +0000 (14:20 -0400)]
Fix a doc comment

10 years agoDocumentation fixes
Matthias Clasen [Wed, 5 Aug 2015 17:48:16 +0000 (13:48 -0400)]
Documentation fixes

10 years agoUpdates
Matthias Clasen [Wed, 5 Aug 2015 17:36:07 +0000 (13:36 -0400)]
Updates

10 years agoplacesview: Fix wrong property type when creating a GtkLabel
Ting-Wei Lan [Wed, 5 Aug 2015 15:09:03 +0000 (23:09 +0800)]
placesview: Fix wrong property type when creating a GtkLabel

The type of xalign property of GtkLabel is float, not int. Using wrong type
crashes GtkFileChooser on x86_64 when compiling with clang.

https://bugzilla.gnome.org/show_bug.cgi?id=753284

10 years agoGtkScrolledWindow: Don't handle key event when can't scroll
Marek Kasik [Wed, 5 Aug 2015 09:14:39 +0000 (11:14 +0200)]
GtkScrolledWindow: Don't handle key event when can't scroll

Don't return that a key event was handled when the corresponding
scrollbar can not scroll.

https://bugzilla.gnome.org/show_bug.cgi?id=753256

10 years agoAdwaita: calendar button fix
Jakub Steiner [Wed, 5 Aug 2015 12:05:57 +0000 (14:05 +0200)]
Adwaita: calendar button fix

- provide insensitive button state for GtkCalendar buttons

https://bugzilla.gnome.org/show_bug.cgi?id=753230

10 years agocolor chooser: Use a popover for the context menu
Matthias Clasen [Wed, 5 Aug 2015 02:58:40 +0000 (22:58 -0400)]
color chooser: Use a popover for the context menu

It works just as well here as it does in the file chooser, and
this lets us unify the right-click and long-press behavior a bit.
We used to switch directly to the editor on long-press, now we
can show the popover, just as we do on right-click.

10 years agowayland: Don't assume drag context has a source window when finalizing
Jonas Ådahl [Mon, 3 Aug 2015 06:26:39 +0000 (14:26 +0800)]
wayland: Don't assume drag context has a source window when finalizing

Only a drag context which was created with 'drag_begin' will be
guaranteed to have a source window at all times. Thus, in finalize we
cannot assume we can retrieve a GdkDisplay from the source_window
pointer since it may be NULL. Though, the display is only needed for
contexts created via 'drag_begin' thus we can retrieve it after
checking that is the case.

https://bugzilla.gnome.org/show_bug.cgi?id=749339

10 years agogtkwindow: bail out on WM operations in the presence of grabs
Carlos Garnacho [Tue, 4 Aug 2015 13:54:40 +0000 (15:54 +0200)]
gtkwindow: bail out on WM operations in the presence of grabs

These operations will require a grab on the WM side, so we can spare the
attempt from the WM to take a grab when we're certain it won't suceed.

https://bugzilla.gnome.org/show_bug.cgi?id=752327

10 years agogtkmain: Don't process WM events if there's a grab on another toplevel
Carlos Garnacho [Tue, 4 Aug 2015 13:49:34 +0000 (15:49 +0200)]
gtkmain: Don't process WM events if there's a grab on another toplevel

This is implicitly done for us in the case of grabs on windows from other
groups, but we must perform this check explicitly for grabs with
owner_events=True on windows from the same group, in that case the window
would handle the events as if there was no grab.

https://bugzilla.gnome.org/show_bug.cgi?id=752327

10 years agoinspector: Fix a typo
Matthias Clasen [Tue, 4 Aug 2015 11:11:34 +0000 (07:11 -0400)]
inspector: Fix a typo

Blocking a signal should be paired with unblocking.
Spotted by Krzesimir Nowak

10 years agoGtkButton: Pick up images that are set early
Matthias Clasen [Tue, 4 Aug 2015 02:35:36 +0000 (22:35 -0400)]
GtkButton: Pick up images that are set early

We were failing to construct the child if an image was set
before constructed (e.g. in the init() function of a button
subclass).

https://bugzilla.gnome.org/show_bug.cgi?id=753048

10 years agoHighContrast: Avoid resizing treeview headers
Matthias Clasen [Tue, 4 Aug 2015 02:16:34 +0000 (22:16 -0400)]
HighContrast: Avoid resizing treeview headers

https://bugzilla.gnome.org/show_bug.cgi?id=753060

10 years agoWhitespace fixes
Matthias Clasen [Mon, 3 Aug 2015 00:58:19 +0000 (20:58 -0400)]
Whitespace fixes

10 years agowayland: Ensure modal hint gets set on map
Rui Matos [Sat, 1 Aug 2015 15:03:49 +0000 (17:03 +0200)]
wayland: Ensure modal hint gets set on map

We need to be mapped to have a gtk_surface and thus be able to do
requests on it so we need to save the modal hint and apply it when we
get mapped so that code that sets the hint before showing a window
doesn't get ignored.

https://bugzilla.gnome.org/show_bug.cgi?id=753138